﻿
@using S4Store.Models
@model LX.Core.Query.PagedList<S4Store.Domain.Actionplan>
@{
    ViewBag.Title = "Query";
    Layout = null;
    var CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<div class="pageContent" ratio="*">
		<table class="table" width="1000" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
                @*<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>  *@             

			    <th width="200">弱项描述</th>
                <th width="200">改善步骤</th>
				<th width="400">执行周期</th>
				@if (CurrentUser.Position == S4Store.Domain.Position.SystemManager || CurrentUser.Position == S4Store.Domain.Position.StoreManager || CurrentUser.Position == S4Store.Domain.Position.GeneralManager)
                {
                    <th width="50">申请人</th>
                }
			</tr>
		</thead>
		<tbody>
            @foreach (var m in this.Model.Data)
            {
                <tr>
                    @* <td style=" text-align:center"><input name="ids" value="@m.Id" type="checkbox"></td>  *@  
                    <td>@Html.Raw(m.Reason)</td>
                    <td>@m.Content</td>
                    <td>@m.Start.ToString("M-d") - @m.End.ToString("M-d")</td>
                    @if (CurrentUser.Position == S4Store.Domain.Position.SystemManager || CurrentUser.Position == S4Store.Domain.Position.StoreManager || CurrentUser.Position == S4Store.Domain.Position.GeneralManager)
                    {
                        <td>@m.AppUser.Name</td>
                    }                
                 </tr>   
				    
            }	
		</tbody>
	</table>
</div>